package testHelper;

import java.io.File;

public class FileList {

	
	private static FileList instance;
	private String[] xmlFiles= {"test-src-ncondie/testFiles/test1.xml","test-src-ncondie/testFiles/test2.xml","test-src-ncondie/testFiles/test3.xml",
			"test-src-ncondie/testFiles/test4.xml","test-src-ncondie/testFiles/test5.xml"};
	private String[] htmlFiles= {"test-src-ncondie/testFiles/test1.html","test-src-ncondie/testFiles/test2.html","test-src-ncondie/testFiles/test3.html",
			"test-src-ncondie/testFiles/test4.html","test-src-ncondie/testFiles/test5.html"};
	
	public static FileList getInstance()
	{
		if(instance==null)
			instance =new FileList();
		return instance;
	}
	public String getHTMLFile(int value)
	{
		return htmlFiles[value];
	}
	public String getXMLFile(int value)
	{
		return xmlFiles[value];
	}
	
	public String removeWhiteSpace(String str)
	{ 	
		str = str.replace("\u00a0","");
		String tmp ="";
		for(int x=0;x<str.length();x++)
		{
			
			if (!Character.isWhitespace(str.charAt(x)))
					tmp+=str.charAt(x);
		}
		return tmp;
	}
}
